video::-webkit-media-controls {
	display: none !important;
}

video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	object-fit: cover;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-weight: 500;
	font-family: "Microsoft YaHei", "宋体", "Segoe UI", "Lucida Grande", Helvetica, Arial, sans-serif, FreeSans, Arimo;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: cover;
}

/* 设置按钮样式 */
.settings-button {
	position: fixed;
	top: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 100;
	backdrop-filter: blur(5px);
	transition: all 0.3s ease;
}

.settings-button:hover {
	background-color: rgba(255, 255, 255, 0.2);
	transform: rotate(90deg);
	transform-origin: center;
}

/* 设置图标样式 */
.settings-icon {
	font-size: 24px;
	display: inline-block;
	width: 100%;
	height: 100%;
	line-height: 50px;
	text-align: center;
	opacity: 0.2; /* 鼠标移开时的透明度 */
	transition: opacity 0.3s ease; /* 添加过渡效果使变化更平滑 */
}

/* 鼠标悬停时的样式 */
.settings-icon:hover {
	opacity: 1; /* 鼠标悬停时完全不透明 */
}

/* 设置面板样式 - 右侧滑出抽屉窗口 */
.settings-panel {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100vh;
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
	z-index: 101;
	overflow-y: auto;
	backdrop-filter: blur(10px);
	transition: right 0.3s ease;
}

/* 显示设置面板时的样式 */
.settings-panel.show {
	right: 0;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.panel-header h3 {
	margin: 0;
	color: #333;
}

.close-btn {
	font-size: 24px;
	color: #999;
	cursor: pointer;
	transition: color 0.3s ease;
}

.close-btn:hover {
	color: #333;
}



.setting-item {
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.setting-item:last-child {
	border-bottom: none;
}

.setting-item h4 {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 16px;
}

/* 搜索引擎选择器样式 */


/* 开关样式 */
.switch-box {
	display: inline-block;
	width: 40px;
	vertical-align: middle;
}

.switch-box .switch {
	/* 隐藏checkbox默认样式 */
	display: none;
}

.switch-box label {
	/* 通过label扩大点击热区 */
	position: relative;
	display: block;
	margin: 1px;
	height: 20px;
	cursor: pointer;
}

.switch-box label::after {
	/* after设置后背景滑块 */
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -10px;
	margin-left: -20px;
	width: 40px;
	height: 20px;
	border-radius: 10px;
	background-color: #ccc;
	transition: all 0.3s ease;
	z-index: 1;
}

.switch-box .switch:checked~label::after {
	background-color: #276ace;
}

.switch-box label::before {
	/* before设置前滚动小圆球 */
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -8px;
	margin-left: -8px;
	width: 16px;
	height: 16px;
	border-radius: 100%;
	background-color: #fff;
	box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.06);
	transform: translateX(-9px);
	transition: all 0.3s ease;
	z-index: 2;
}

.switch-box .switch:checked~label::before {
	transform: translateX(9px);
}

/* 上传按钮样式 */
.upload-btn {
	display: inline-block;
	padding: 10px 20px;
	background-color: #276ace;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.upload-btn:hover {
	background-color: #1e5aab;
}

/* 清除按钮样式 */
.clear-btn {
	padding: 8px 16px;
	background-color: #dc3545;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.clear-btn:hover {
	background-color: #c82333;
}



/* 极简风格搜索框 */
.search-container {
	position: absolute;
	top: 30%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 500px;
	max-width: 85%;
	z-index: 10;
}

.search-container form {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
}

/* 搜索引擎选择器 */
.search-engine-selector {
	position: relative;
	z-index: 20;
}

.search-engine-icon {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	color: #666;
	padding: 5px;
	border-radius: 4px;
	transition: background-color 0.2s ease;
}

.search-engine-icon:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-arrow {
	font-size: 12px;
	transition: transform 0.2s ease;
}

.search-engine-dropdown {
	position: absolute;
	left: 15px;
	top: 30px;
	background-color: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(10px);
	padding: 8px 0;
	width: 140px;
	display: none;
	z-index: 30;
}

.search-engine-dropdown.show {
	display: block;
}

.engine-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 15px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.engine-option:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.engine-icon-img,
.engine-option-img {
	width: 20px;
	height: 20px;
	border-radius: 4px;
}

.engine-option span {
	font-size: 14px;
	color: #333;
}

.search-container input {
	border: none;
	outline: none;
	width: 100%;
	height: 48px;
	padding: 0 20px 0 70px;
	background-color: rgba(255, 255, 255, 0.9);
	color: #333;
	font-size: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	border-radius: 24px;
}

.search-container input:focus {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
	background-color: rgba(255, 255, 255, 0.95);
}

.search-container input::placeholder {
	color: #999;
}

/* 时间显示样式 */
.time-display {
	position: absolute;
	top: 20%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: rgba(255, 255, 255, 0.8);
	font-size: 64px;
	font-weight: 500;
	text-align: center;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 10;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
